Function: hasClass(domElementOrCSSSelector, stringClassName) Description: Checks if one or more space delimited class names exist on the specified element. Returns: Boolean: true if found, false otherwise. Note: If more than one class name is listed in the second parameter, hasClass will only return true if all of the specified class names exist within the specified element. The hasClass() function always returns a Boolean value, even when chained. Example: var confirm = $A.hasClass(domElement, "selected-option"); // Or the same using chaining var confirm = $A(domElement).hasClass("selected-option");